<?php

class Team
{
	public $id;
	public $name;
	public $userID;
	public $draftID;
	public $draftOrder;
	
	public function __construct($id, $name, $userID, $draftID, $draftOrder)
	{
		$this->id = $id;
		$this->name = $name;
		$this->userID = $userID;
		$this->draftID = $draftID;
		$this->draftOrder = $draftOrder;
	}
	
	public function isInDraft($draftID)
	{
		return $this->draftID == $draftID;
	}
	
	public function __toString()
	{
		return $this->name;
	}
}

?>